package com.function.domin.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Email {

    //主键id
    @TableId(type = IdType.AUTO)
    private Long id;

    //发件人
    private String from;

    //收件人
    private String to;

    //邮件标题
    private String subject;

    //邮件内容
    private String text;

    //发件时间
    private LocalDateTime postTime;

}
